//
//  ConnectModel.h
//  UI-20网络Block
//
//  Created by Xue Senhong on 15/5/15.
//  Copyright (c) 2015年 薛森鸿. All rights reserved.
//

#import <Foundation/Foundation.h>



@interface ConnectModel : NSObject

- (void)startConnect:(NSString *)str;

@property (nonatomic, retain)NSMutableData *recieveData;

@property (nonatomic, copy) void(^finishBlock)(NSData *data);

+ (void)connctUrl:(NSString *)url block:(void(^)(NSData *data))block;

+ (void)connctUrl:(NSString *)url andPost:(NSString *)post block:(void(^)(NSData *data))block;


- (void)startPostConnect:(NSString *)str postUrl:(NSString *)post;


@end
